home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / catman / p_man / cat3 / subs.Z / subs
Encoding:
Text File  |  1998-10-28  |  1.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      ssssuuuubbbbssss((((3333))))         22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))           ssssuuuubbbbssss((((3333))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       subs - Perl pragma to    predeclare sub names
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           use subs qw(frob);
  13.           frob 3..10;
  14.  
  15.  
  16.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.       This will predeclare all the subroutine whose    names are in
  18.       the list, allowing you to use    them without parentheses even
  19.       before they're declared.
  20.  
  21.       Unlike pragmas that affect the $^H hints variable, the use
  22.       vars and use subs declarations are not BLOCK-scoped.    They
  23.       are thus effective for the entire file in which they appear.
  24.       You may not rescind such declarations    with no    vars or    no
  25.       subs.
  26.  
  27.       See the section on _P_r_a_g_m_a_t_i_c _M_o_d_u_l_e_s in the _p_e_r_l_m_o_d_l_i_b
  28.       manpage and the section on _s_t_r_i_c_t _s_u_b_s in the    _s_t_r_i_c_t
  29.       manpage.
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 10/23/98)
  64.  
  65.  
  66.  
  67.